
import java.io.*;
public class TestinputfileStreamQxl {
	public static void main (String args[] ){
		int Qxl=0;
		FileInputStream in=null;
		try{
			long num=0;
			in=new FileInputStream("E:/2200824Qxl/2200824屈祥乐.txt");
			while((Qxl=in.read())!=-1){
				System.out.print((char)Qxl);
				num++;
			}
			in.close();
			System.out.println();
			System.out.println("共读取了"+num+"个字节");
		}catch(FileNotFoundException L){
			System.out.println("请输入正确的路径，根本找不到你要的文件");
			System.exit(-1);
			
		}
		catch(IOException L1){
			System.out.println("文件读取错误");
		}
		
	}

}
